using System;
using System.Globalization;
namespace Coding4Fun.Phone.Controls.Primitives
{
	public class TimeSpanWrapper : ValueWrapper<TimeSpan>
	{
		public TimeSpan TimeSpan
		{
			get
			{
				return base.Value;
			}
		}
		public string HourNumber
		{
			get
			{
				return this.TimeSpan.get_Hours().ToString(CultureInfo.get_InvariantCulture());
			}
		}
		public string MinuteNumber
		{
			get
			{
				return this.TimeSpan.get_Minutes().ToString(CultureInfo.get_InvariantCulture());
			}
		}
		public string SecondNumber
		{
			get
			{
				return this.TimeSpan.get_Seconds().ToString(CultureInfo.get_InvariantCulture());
			}
		}
		public override ValueWrapper<TimeSpan> CreateNew(TimeSpan? value)
		{
			return new TimeSpanWrapper(value.GetValueOrDefault(TimeSpan.FromMinutes(30.0)));
		}
		public TimeSpanWrapper(TimeSpan timeSpan) : base(timeSpan)
		{
		}
	}
}
